package com.monitor.core.bean;

/**
 * @Auther: hanhui.liu
 * @Date: 2018/4/26 11:56
 * @Description:
 */
public enum MonitorType {

    Controller(1),
    Service(2),;

    public int value;

    MonitorType(int value) {
        this.value = value;
    }

    public MonitorType getMonitorType(int value) {
        for (MonitorType monitorType : MonitorType.values()) {
            if (value == monitorType.value) {
                return monitorType;
            }
        }
        return null;
    }
}
